package com.njtoyo.taxi.admin.rest.wrapper.business.canton;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("行政区创建模型")
@Data
public class CantonCreateWrapper {

    @ApiModelProperty("行政区名称")
    @NotBlank(message = "行政区名称不能为空")
    private String name;
    
    @ApiModelProperty("拼音")
    private String pinyin;
    
    @ApiModelProperty("是否热门")
    private Boolean isHot;

    @ApiModelProperty(value = "地区ids")
    @NotNull(message = "地区ids不能为空")
    private List<Long> areaIds;

    @ApiModelProperty(value = "是否同时添加司机运营区")
    @NotNull(message = "是否同时添加司机运营区不能为空")
    private Boolean openDriverRegion;

    @ApiModelProperty(value = "是否同时添加乘客运营区")
    @NotNull(message = "是否同时添加乘客运营区不能为空")
    private Boolean openCustomerRegion;

}
